package com.lqian.blog.service;

import com.lqian.blog.vo.ArticleVo;
import com.lqian.blog.vo.Result;
import com.lqian.blog.vo.params.ArticleParam;
import com.lqian.blog.vo.params.PageParams;

public interface ArticleService {

    /**
     * 分页查询 文章列表
     * @param pageParams
     * @return
     */
    Result listArticle(PageParams pageParams);

    /**
     * @Author Melody_LQ
     * @Date 2021/7/29 11:33
     * @Description 最热文章
     * @Param @param null:
     * @Return
     * @Since version-1.0
     */
    Result hotArticle(int limit);

    Result newArticles(int limit);

    /**
     * 文章归档
     * @return
     */
    Result listArchives();

    ArticleVo findArticleById(Long id);

    /**
     * 发布文章服务
     * @param articleParam
     * @return
     */
    Result publish(ArticleParam articleParam);
}
